package leecode

import "strconv"

func maximumValue(strs []string) int {
	var result int
	for _, str := range strs {
		for _, word := range str {
			if word >= 'a' && word <= 'z' {
				result = max(result, len(str))
				break
			} else if word >= '0' && word <= '9' {
				temp, _ := strconv.Atoi(str)
				result = max(result, temp)
			}
		}
	}
	return result
}
